import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import User from '@/components/User'
import Dep from '@/components/Dep'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
     // component: HelloWorld,
      redirect:'/user'//重定向到user
    },
    {
      path: '/User',
      name: 'User',
      component: User
    }, 
     {
      path: '/Dep',
      name: 'Dep',
      component: Dep
    }
  ]
})
